package com.wei.frame.net;

import com.wei.frame.bean.BaseBean;
import com.wei.frame.bean.NewsBean;

import java.util.List;

import io.reactivex.rxjava3.core.Single;
import retrofit2.http.GET;
import retrofit2.http.Query;

/**
 * 作者:赵若位
 * 时间:2021/7/1 10:00
 * 功能:Rerofit接口地址
 */
public interface RetrofitApiService {

    @GET("toutiao/index?key=988e51c45bbe88a33e032f8da38a61dd")
    Single<BaseBean<List<NewsBean>>> getNewsData(@Query("type") String type);

}
